class Student:
    name = "张三" #类属性
    def test(self):
        print("test")

s = Student()
print(Student.name)
Student.name = "李四"
print(Student.name)
print(s.name)